package com.qing.springboot.controller.dto;

/**
 * ClassName: UserDTO
 * Description:
 *
 * @Author Dong
 * @Create 2024/7/21 21:12
 * @Version 1.0
 */

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qing.springboot.entity.Menu;
import lombok.Data;

import java.util.List;

/**
 * 接受前端登录请求的参数
 */
@Data
@TableName("sys_user" )
public class UserDTO {
    private String username;
    private String password;
    @TableField("nickname")
    private String nickname;
    @Alias("头像")
    private String avatarUrl;
    private String token;
    private String role;
    private List<Menu> menus;
}